﻿package mortal.component.skin.combobox
{
    import com.mui.skins.*;
    import fl.core.*;
    import flash.geom.*;
    import flash.text.*;
    import mortal.common.global.*;
    import mortal.component.skin.combobox.comboboxSkin.*;
    import mortal.component.skin.scrollBar.*;

    public class GComboboxStyle extends SkinStyle
    {
        private var _rect:Rectangle;
        private var _textFormat:TextFormat;
        private var _disTextFormat:TextFormat;
        private var scrollBarStyle:ScrollBarChatStyle;

        public function GComboboxStyle()
        {
            this._rect = new Rectangle(8, 8, 37, 8);
            this._textFormat = GlobalStyle.textFormatPutong.center();
            this._disTextFormat = GlobalStyle.textFormatHui.center();
            this.scrollBarStyle = new ScrollBarChatStyle();
            return;
        }// end function

        override public function setStyle(param1:UIComponent) : void
        {
            param1.setStyle("upSkin", ComboboxUpSkin);
            param1.setStyle("overSkin", ComboboxOverSkin);
            param1.setStyle("downSkin", ComboboxUpSkin);
            param1.setStyle("disabledSkin", ComboboxUpSkin);
            param1.setStyle("textFormat", this._textFormat);
            param1.setStyle("disabledTextFormat", this._disTextFormat);
            this.scrollBarStyle.setStyle(param1);
            return;
        }// end function

    }
}
